package com.kehutong.charge.entity;

import com.kehutong.common.entity.DataEntity;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

import java.math.BigDecimal;

/**
 * @program: kht
 * @description: ChargeLadderConfig
 * @author: joneron
 * @create: 2021/6/23
 **/
@Table(value="t_charge_bill_ladder", comment="阶梯费用明细表",multi = true, idType = IDType.TIMESTAMP, engine = "innodb")
public class ChargeBillLadder extends Entity {

    private static final long serialVersionUID = 2101701528225269733L;

    protected ChargeBillLadder(String id) {
        super(id);
    }

    @Column(comment="项目配置id")
    private String chargeProjectNo;

    @Column(comment="房屋编号")
    private String houseNo;

    @Column(comment="仪表类型编号")
    private String meterTypeNo;

    @Column(comment="仪表类型名称")
    private String meterTypeName;

    @Column(comment="账单年月")
    private String billYearMonth;

    @Column(comment="账单项编号")
    private String itemBillNo;

    @Column(comment="费用分类")
    private String usageType;

    @Column(comment="阶梯用量")
    private BigDecimal usageNumber;

    @Column(comment="用量范围单价")
    private BigDecimal usagePrice;

    @Column(comment="总金额")
    private BigDecimal totalAmount;

    @JSONField(serialize = false)
    @Column(comment = "逻辑删除")
    private boolean deleted;

    @Column(comment = "创建人")
    private String createName;

    @Column(comment = "修改人")
    private String updateName;

    public String getBillYearMonth() {
        return billYearMonth;
    }

    public void setBillYearMonth(String billYearMonth) {
        this.billYearMonth = billYearMonth;
    }

    public String getHouseNo() {
        return houseNo;
    }

    public void setHouseNo(String houseNo) {
        this.houseNo = houseNo;
    }

    public String getMeterTypeNo() {
        return meterTypeNo;
    }

    public void setMeterTypeNo(String meterTypeNo) {
        this.meterTypeNo = meterTypeNo;
    }

    public String getMeterTypeName() {
        return meterTypeName;
    }

    public void setMeterTypeName(String meterTypeName) {
        this.meterTypeName = meterTypeName;
    }

    public String getItemBillNo() {
        return itemBillNo;
    }

    public void setItemBillNo(String itemBillNo) {
        this.itemBillNo = itemBillNo;
    }

    public String getChargeProjectNo() {
        return chargeProjectNo;
    }

    public void setChargeProjectNo(String chargeProjectNo) {
        this.chargeProjectNo = chargeProjectNo;
    }

    public String getUsageType() {
        return usageType;
    }

    public void setUsageType(String usageType) {
        this.usageType = usageType;
    }

    public BigDecimal getUsageNumber() {
        return usageNumber;
    }

    public void setUsageNumber(BigDecimal usageNumber) {
        this.usageNumber = usageNumber;
    }

    public BigDecimal getUsagePrice() {
        return usagePrice;
    }

    public void setUsagePrice(BigDecimal usagePrice) {
        this.usagePrice = usagePrice;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }
}
